From: equal-l2 Date: Wed, 27 Sep 2017 13:46:06 +0000 (+0900) Subject: Fix compilation error X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~32^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8346104c1cf54624b8679610681f5451b8ff7f58;p=cargo.git Fix compilation error --- diff --git a/src/cargo/util/sha256.rs b/src/cargo/util/sha256.rs index 97a8a9fb1..c805d7f1a 100644 --- a/src/cargo/util/sha256.rs +++ b/src/cargo/util/sha256.rs @@ -1,12 +1,12 @@ -pub use self::Sha256; extern crate crypto_hash; -use crypto_hash::{Hasher,Algorithm}; +use self::crypto_hash::{Hasher,Algorithm}; +use std::io::Write; pub struct Sha256(Hasher); impl Sha256 { pub fn new() -> Sha256 { - let hasher = Hasher::new(Algorithm::sha256()); + let hasher = Hasher::new(Algorithm::SHA256); Sha256(hasher) }